package org.jeecg.modules.inventory.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.inventory.entity.BussInventory;
import org.jeecg.modules.inventory.entity.BussInventoryInoutDetails;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

/**
 * @Description: 库存出入库明细
 * @Author: jeecg-boot
 * @Date:   2024-07-01
 * @Version: V1.0
 */
public interface IBussInventoryInoutDetailsService extends IService<BussInventoryInoutDetails> {

	/**
	 * 通过主表id查询子表数据
	 *
	 * @param mainId 主表id
	 * @return List<BussInventoryInoutDetails>
	 */
	public List<BussInventoryInoutDetails> selectByMainId(String warehouseId,String materialId);

	public IPage<BussInventoryInoutDetails> selectByDetailId(Page<BussInventoryInoutDetails> page,String mainId);
}
